.class Lcom/netease/newsreader/activity/MainIndexActivity$2$1;
.super Ljava/lang/Thread;
.source "MainIndexActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/MainIndexActivity$2;->handleMessage(Landroid/os/Message;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/MainIndexActivity$2;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    .line 332
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 335
    iget-object v2, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$8(Lcom/netease/newsreader/activity/MainIndexActivity;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v3}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v3

    iget-object v3, v3, Lcom/netease/newsreader/activity/MainIndexActivity;->app:Lcom/netease/newsreader/activity/MyApplication;

    invoke-static {v2, v3}, Lcom/netease/newsreader/util/PicUtil;->getCoverUrl(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 336
    .local v0, down_cover_src:Ljava/lang/String;
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "down_cover_src:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/util/Logger;->i(Ljava/lang/String;)V

    .line 337
    const-string v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v2

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    invoke-virtual {v0, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/util/PicUtil;->isLocalPicExit(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 338
    sget-object v2, Lcom/netease/newsreader/util/PicUtil;->phototempDir:Ljava/lang/String;

    iget-object v3, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v3}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v3

    iget-object v3, v3, Lcom/netease/newsreader/activity/MainIndexActivity;->app:Lcom/netease/newsreader/activity/MyApplication;

    invoke-static {v2, v0, v3}, Lcom/netease/newsreader/util/PicUtil;->downloadImgToLocal(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Z

    move-result v1

    .line 339
    .local v1, downflag:Z
    if-eqz v1, :cond_0

    .line 340
    iget-object v2, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$9(Lcom/netease/newsreader/activity/MainIndexActivity;)Landroid/content/SharedPreferences;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "cover"

    iget-object v4, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$8(Lcom/netease/newsreader/activity/MainIndexActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 341
    iget-object v2, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$9(Lcom/netease/newsreader/activity/MainIndexActivity;)Landroid/content/SharedPreferences;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "cover_start"

    iget-object v4, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$10(Lcom/netease/newsreader/activity/MainIndexActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 342
    iget-object v2, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$9(Lcom/netease/newsreader/activity/MainIndexActivity;)Landroid/content/SharedPreferences;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "cover_end"

    iget-object v4, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$11(Lcom/netease/newsreader/activity/MainIndexActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 350
    .end local v1           #downflag:Z
    :cond_0
    :goto_0
    return-void

    .line 346
    :cond_1
    iget-object v2, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$9(Lcom/netease/newsreader/activity/MainIndexActivity;)Landroid/content/SharedPreferences;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "cover"

    iget-object v4, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$8(Lcom/netease/newsreader/activity/MainIndexActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 347
    iget-object v2, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$9(Lcom/netease/newsreader/activity/MainIndexActivity;)Landroid/content/SharedPreferences;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "cover_start"

    iget-object v4, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$10(Lcom/netease/newsreader/activity/MainIndexActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 348
    iget-object v2, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$9(Lcom/netease/newsreader/activity/MainIndexActivity;)Landroid/content/SharedPreferences;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "cover_end"

    iget-object v4, p0, Lcom/netease/newsreader/activity/MainIndexActivity$2$1;->this$1:Lcom/netease/newsreader/activity/MainIndexActivity$2;

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity$2;->access$0(Lcom/netease/newsreader/activity/MainIndexActivity$2;)Lcom/netease/newsreader/activity/MainIndexActivity;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/MainIndexActivity;->access$11(Lcom/netease/newsreader/activity/MainIndexActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    goto :goto_0
.end method
